#include "Iterator.h"

#include <cstring>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    std::string        dir = "/root/workspace/";
    DirectoryContainer dirCont(dir.c_str());
    DirectoryIterator  iter = dirCont.iterator();

    for (iter.start(); !iter.isDone(); iter.toNext()) {
        DirectoryEntry entry = iter.current();
        std::cout << entry.file_name() << std::endl;
    }
    return 0;
}